<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>

    <link rel="stylesheet" href="./game.css">
</head>
<body>
    <div class="vue-app" id="vue-app">
        <div  :class="{ bust:ended,'bag':true}"></div>
        <div class="health">
            <div :style="{width: health*0.01*250 +'px'}"></div>
        </div>

        <div class="controls">
            <button v-on:click ="punch()"  v-show = '!ended'>punch</button>
            <button v-on:click ="restart()">restart</button>
        </div>
    </div>
    <script src="app.js"></script>
</body>
</html>